package com.yqg.education.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

/**
 * live_playback 实体类
 *
 * @author zxf
 * @since 2025-07-11
 */
@Getter
@Setter
@TableName("live_playback")
public class LivePlayback implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 直播id
     */
    private Long liveId;

    /**
     * 视频链接
     */
    private String url;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;


    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 直播名称
     */
    @TableField(exist = false)
    private String liveName;

    /**
     * 课程名称
     */
    @TableField(exist = false)
    private String courseName;

    /**
     * 教师名称
     */
    @TableField(exist = false)
    private String teachName;
}
